//
//  RankCell.m
//  Double
//
//  Created by 袁庆秋 on 15/5/26.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "RankCell.h"

@implementation RankCell

- (void)dealloc
{
    [_curNumLabel release];
    [_showImage release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width / 3 - 20, 110)];


        [self addSubview:_showImage];
        [_showImage release];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 110, [UIScreen mainScreen].bounds.size.width / 3 - 40, 30)];
        self.titleLabel.font = [UIFont systemFontOfSize:10];
        self.titleLabel.backgroundColor = [UIColor lightGrayColor];
        self.titleLabel.alpha = 0.7;
        [self addSubview:_titleLabel];
        [_titleLabel release];
        
        self.rankLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 - 40, 110, 20, 30)];
        self.rankLabel.textAlignment = NSTextAlignmentCenter;
        self.rankLabel.alpha = 0.7;
        [self addSubview:_rankLabel];
        [_rankLabel release];
        
        self.curNumLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 140, [UIScreen mainScreen].bounds.size.width / 3 - 20, 20)];
        self.curNumLabel.font = [UIFont systemFontOfSize:9];
        self.curNumLabel.alpha = 0.8;
        [self addSubview:_curNumLabel];
        [_curNumLabel release];
    }
    return self;
}

@end
